import request from './request'
import { useUserStore } from "../store/modules/user"
// 获取商品列表
export function getBrandList(data: object) {
    let token = {
        [useUserStore().row.tokenName]: useUserStore().token
    }
    return request({
        url: '/goods/getGoodsList',
        method: 'post',
        data,
        headers: token
    })
}

// 获取品牌下拉数据
export function getBrandSelect(data) {
    let token = {
        [useUserStore().row.tokenName]: useUserStore().token
    }
    return request({
        url: '/select/goods/getBrandSelect',
        method: 'post',
        headers: token,
        data
    })
}
// 获取商品分类下拉数据
export function getGoodsTypeSelect(data) {
    let token = {
        [useUserStore().row.tokenName]: useUserStore().token
    }
    return request({
        url: '/select/goods/getGoodsTypeSelect',
        method: 'post',
        headers: token,
        data
    })
}